package test01;

public class leiJia {
    public static void main(String[] args) {
        System.out.println(jia(100));
    }
    public static int jia(int a){
        int ans = 0;
        for(int i = 0;i <= a;i++){
            ans += i;
        }
        return ans;
    }
}
